package com.ljf.common.dto.query;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 基础查询类
 *
 * @author LJF
 * @since 2024-01-22
 */
@Data
@ApiModel(value = "分页参数")
public class PageParam implements Serializable, IPageParam {

    private static final long serialVersionUID = 1L;

    @JsonProperty("current")
    @ApiModelProperty(value = "当前页码")
    private Integer current = 1;

    @JsonProperty("size")
    @ApiModelProperty(value = "页面大小")
    private Integer size = 10;

    @JsonProperty("state")
    @ApiModelProperty(value = "状态")
    private Integer state = 1;

}
